#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2023-5-22 8:46
# @Author  : XiangZhi_an
# @File    : baoli.py
# @Description :
# 一组点的坐标（部分缺失）
points = [(0, 0), (0, 1), (0, 2), (1, 0), (1, 1),
          (2, 0), (2, 1), (2, 2), (3, 1), (3, 2)]

# 获取矩阵的行数和列数
row = max([p[0] for p in points]) + 1
col = max([p[1] for p in points]) + 1

# 查找缺失的点
for i in range(row):
    for j in range(col):
        if (i, j) not in points:
            print("缺失点 ({}, {})".format(i, j))
